package TAIC.util.temp;

import java.io.File;
import java.util.Scanner;

public class ChangeIndexName {
	static public void main ( String str [] ) {
		try {
			Scanner scanner = new Scanner ( new File ( "cal256.txt"));
			while ( scanner.hasNext() ){
				String dir = scanner.next() ;
				File file1 = new File ( dir + "\\index1.txt");
				file1.delete() ; 
				File file = new File ( dir + "\\index1.txt"); 
				file.renameTo( new File ( dir + "\\index.txt")) ;
			}
		}
		catch ( Exception e ) {
			e.printStackTrace()  ;
		}
	}
}
